<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;

use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Passport\HasApiTokens;

class Apiuser extends Authenticatable
{
    protected $guarded=[];
    use HasApiTokens, HasFactory, Notifiable;


    public function setPasswordAttribute($value)
    {
        // dd($value);
        $this->attributes['password'] = empty($value) ?  "" :  bcrypt($value);
    }
}
